package other.Other_use;

public class Animal {
    private String name;
    private Clother cloths;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Clother getCloths() {
        return cloths;
    }

    public void setCloths(Clother cloths) {
        this.cloths = cloths;
    }

    public void walk()
    {
        System.out.println(name+"穿着"+cloths.getCloth()+"在大街上转");
    }
}
